//
//  RCSessionApi.m
//  FreshMember
//
//  Created by qyc on 2019/7/10.
//  Copyright © 2019 qyc. All rights reserved.
//

#import "HASessionApi.h"

@implementation HASessionApi {
    YTKRequestMethod _requestMethod;
    NSString *_url;
    NSMutableDictionary *_requestArgument;
}

- (id)initSessionTaskWithRequestMethod:(YTKRequestMethod)requestMethod url:(NSString *)url requestArgument:(NSMutableDictionary *)requestArgument {
    self = [super init];
    if (self) {
        _requestMethod = requestMethod;
        _url = url;
        _requestArgument = requestArgument;
    }
    return self;
}

- (NSString *)requestUrl {
    return _url;
}

- (NSDictionary *)requestHeaderFieldValueDictionary {
    return [[ReadWriteUserInfoTool sharedUserInfo] requestHeaderDictionary];
}

- (YTKRequestMethod)requestMethod {
    return _requestMethod;
}

- (id)requestArgument {
    return _requestArgument;
}
@end
